<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改解决方案')" />
</head>
<body class="white-bg">
  <div class="form-content">
    <form class="form-horizontal m" id="form-sewagePlan-edit" th:object="${sewagePlan}">
    <input id="planId" name="planId" th:field="*{planId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>方案名称：</label>
				<div class="col-sm-8">
					<input id="planName" name="planName" th:field="*{planName}" class="form-control" type="text" maxlength="20" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>技术原理：</label>
				<div class="col-sm-8">
          <textarea name="symptom3" maxlength="1000" class="form-control" rows="15" required>[[*{planTech}]]</textarea>
				</div>
			</div>
		</form>
  </div>
  <div class="row">
    <div class="col-sm-offset-5 col-sm-10">
      <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
      <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
    </div>
  </div>
  <div th:include="include::footer"></div>
  <script type="text/javascript">
  var prefix = ctx + "sewage/sewagePlan";
  $("#form-sewagePlan-edit").validate({
    focusCleanup: true
  });

  function submitHandler() {
    if ($.validate.form()) {
      $.operate.saveTab(prefix + "/edit", $('#form-sewagePlan-edit').serialize());
    }
  }
</script>
</body>
</html>
